#include "RandomNumber.h"

RNG::RNG(unsigned long long _seed = 7564321ULL)
{
	seed = _seed;
	flt_max = 4294967295.0f;
	llmax = 4294967295ULL;
	mult = 62089911ULL;
}

float RNG::operator() ()
{
	seed = mult * seed;
	return (seed % llmax)/flt_max;
}

// Other good versions of random number generators to follow
